package com.landian.commons.jpa.hql;

import lombok.Getter;

/**
 * 参数单元
 *
 * @author caojl
 * @create 2017/12/07
 **/
public class ParameterUnit {

    public static ParameterUnit newInstance(String name, Object value) {
        return new ParameterUnit(name, value);
    }

    private ParameterUnit(String name, Object value){
        this.name = name;
        this.value = value;
    }

    /**
     * name
     */
    @Getter
    private String name;

    /**
     * value
     */
    @Getter
    private Object value;
}
